﻿import QtQuick
import QtQuick.Window
import QtQuick.Controls

import "./page"
import SecAssistPro

Window {
    // width: 1280
    // height: 800
    width: 1088
    height: 544
    minimumWidth: 816
    minimumHeight: 408
    visible: true
    title: qsTr("File Isolation")

    // LoginPage { }
    // TestPage { }
    MainPage { }
    Dialog {
        id: dialog
        anchors.centerIn: parent
        // modal: true
        // closePolicy: Popup.NoAutoClose
        // Loader {
        //     sourceComponent: component__login_page
        // }
        LoginPage { }
    }

    FpsItem {
        id:fps_item
    }
    Text{
        text: "fps %1".arg(fps_item.fps)
        opacity: 0.3
        anchors{
            bottom: parent.bottom
            right: parent.right
            bottomMargin: 5
            rightMargin: 5
        }
    }

    Component {
        id: component__login_page
        LoginPage { }
    }

    Component.onCompleted: {
        // dialog.open()
    }
}
